//我把它放在了utils里面封装了
export default {
	getScrollHeight(elementClass){
	    return new Promise((resolve,reject)=>{
	        let scroll_content_height = 0;
	        uni.getSystemInfo({
	            success:(res)=>{
	                let win_height = res.windowHeight;
	                const scroll_node = uni.createSelectorQuery().select(`.${elementClass}`);  
	                scroll_node
	                .boundingClientRect((result) => {
	                    scroll_content_height = win_height - result .top;
	                    console.log(scroll_content_height,"新的高度");
	                    resolve(scroll_content_height)
	                })
	                .exec();
	            }
	        })
	    })
	}
	
}


